package com.putong35.common.account.data.http;

import com.putong35.common.account.Account;

import java.util.HashMap;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface AccountApi {

    @Headers({"Content-Type:application/json", "Accept:application/json"})//需要添加头
//    @FormUrlEncoded
    @POST("app/user/register")
    Call<Account> register(@Body HashMap bodyMap);

    //    @Headers({"Content-Type:application/json","Accept:application/json"})//需要添加头
    @POST("app/user/login")
    Call<Account> login(@Body HashMap bodyMap);

    @POST("app/user/changePwd")
    Call<String> changePwd(@Body HashMap bodyMap);

    @POST("app/user/edit")
    Call<Account> edit(@Body HashMap bodyMap);


}
